package cn.tedu.oa_system.pojo.in;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @Author MW
 * @Description
 * @CreateDate 2023/3/8
 */
@Data
public class SysMenuIn implements Serializable {

    static final long serialVersionUID = 1L;

    private Long menuId;

    private String menuIcon;

    private String menuName;

    private String menuUrl;

    private Long parentId;

    private Integer sortId;

    private Integer handle;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysMenuIn sysMenuIn = (SysMenuIn) o;
        return Objects.equals(menuId, sysMenuIn.menuId) && Objects.equals(menuIcon, sysMenuIn.menuIcon) && Objects.equals(menuName, sysMenuIn.menuName) && Objects.equals(menuUrl, sysMenuIn.menuUrl) && Objects.equals(parentId, sysMenuIn.parentId) && Objects.equals(sortId, sysMenuIn.sortId) && Objects.equals(handle, sysMenuIn.handle);
    }

    @Override
    public int hashCode() {
        return Objects.hash(menuId, menuIcon, menuName, menuUrl, parentId, sortId, handle);
    }

    @Override
    public String toString() {
        return "SysMenuIn{" +
                "menuId=" + menuId +
                ", menuIcon='" + menuIcon + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", parentId=" + parentId +
                ", sortId=" + sortId +
                ", handle=" + handle +
                '}';
    }
}
